package com.jingzhongbao.springboot.filter;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.springframework.web.filter.GenericFilterBean;

public class BeforeLoginFilter extends GenericFilterBean {

	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
			FilterChain filterChain) throws IOException, ServletException {
		logger.info("This is a filter before UsernamePasswordAuthenticationFilter.");
		// 继续调用 Filter 链
        filterChain.doFilter(servletRequest, servletResponse);
	}

}
